//package com.lyb.springbootredisclient.config;
//
//import org.apache.ibatis.mapping.CacheBuilder;
//import org.springframework.cache.CacheManager;
//import org.springframework.cache.annotation.EnableCaching;
//import org.springframework.cache.guava.GuavaCacheManager;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//
//import java.util.concurrent.TimeUnit;
//
///**
// * @author: lyb  2023/3/13 13:44
// */
//@EnableCaching
//@Configuration
//public class GuavaCacheConfig {
//    @Bean
//    public CacheManager cacheManager() {
//        GuavaCacheManager cacheManager = new GuavaCacheManager();
//        cacheManager.setCacheBuilder(CacheBuilder.CacheBuilder().expireAfterWrite(3, TimeUnit.MINUTES));
//        return cacheManager;
//    }
//}
//
